<?php
$html = <<<HERE
       
   
   <h1> PONTIFICIA UNIVERSIDAD CATOLICA DEL ECUADOR </h1>
<table>
  <tr>
    <td>RUN: </td>
    <td>$model->id</td>
  </tr>
  <tr>
    <td>Participante:</td>
    <td>$model->participante_id</td>
  </tr>
  <tr>
    <td>Evento:</td>
    <td>$model->evento_id</td>
  </tr>
</table>
HERE;
 
//$mpdf = new mPDF('utf-8','LETTER','','',15,15,25,12,5,7,'L');
$mpdf=new mPDF('utf-8', 'A4-L');
//$mpdf->SetHeader(Yii::app()->name);
$mpdf->SetFooter('Pie de página');
$mpdf->SetWatermarkImage(Yii::app()->request->baseUrl."/images/logo.png");


$mpdf ->showWatermarkImage = true;
$mpdf->WriteHTML($html);
$mpdf->Output('Ficha-Usuario_'.$model->id.'.pdf','I');
exit;
?>